<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String contextPath = request.getContextPath();
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>文件上传测试</title>
</head>
<body>
	<form action="<%=contextPath %>/fileUpload.do" method="post" enctype="multipart/form-data">
		<input type="text" name="name"><br>
		<input type="file" name="file1" /><br>
		
		<input type="submit" value="提交" />
	</form>
</body>
</html>